/**
 * Created by pc on 2017/3/29.
 */
import Relay from "react-relay";

export default class enterpriseCensusMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { enterpriseCensus }`;
    }

    getVariables() {
        return {
            argsInput: {

            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on enterpriseCensusPayload {
            enterpriseCensus {
                errorCode
                value
                totalResult
                id
                enterpriseTotalModel{
                    totalCount
                    increasedEnterpriseToday
                    increase30days
                    increase7days
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on enterpriseCensusPayload {
                    enterpriseCensus {
                errorCode
                value
                totalResult
                id
                enterpriseTotalModel{
                    totalCount
                    increasedEnterpriseToday
                    increase30days
                    increase7days
                }
                
            }
                }
            `]
        }];
    }

}